{ "cells": [ { "cell_type": "markdown", "id": "1f5391a5", "metadata": { "slideshow": { "slide_type": "slide" } }, "source": [ "# ML Deployment using Flask\n", "## Deploy the ML project using Flask\n" ] }, { "cell_type": "markdown", "id": "ba5538f4", "metadata": { "slideshow": { "slide_type": "subslide" } }, "source": [ "### Deployment of House Rate Prediction\n", "\n", "To predict the new data, we have to deploy the model (e.g., over the internet) so that the outside world can use it.\n" ] }, { "cell_type": "markdown", "id": "266dcfe2", "metadata": { "slideshow": { "slide_type": "subslide" } }, "source": [ "\n" ] }, { "cell_type": "markdown", "id": "3faa80d5", "metadata": { "slideshow": { "slide_type": "subslide" } }, "source": [ "#### Flask\n", "- Flask is a Python-based micro framework used for developing small-scale websites. \n", "\n", "- Flask is very easy to make Restful APIs using python. \n", "\n", "- As of now, we have developed a model i.e `model.pkl` , which can predict the house rate.\n", "\n", "Quick start project using flask: [link](https://flask.palletsprojects.com/en/2.3.x/quickstart/)\n" ] }, { "cell_type": "markdown", "id": "c020908b", "metadata": { "slideshow": { "slide_type": "subslide" } }, "source": [ "#### Step:1 Creation for HTML form\n", "- We will now design a web application where the user will input the feature value -- `house area` using HTML form with name `index.html`.\n", "\n", "- The input data will be given to the model.\n", "\n", "- The model will predict the house rate for the value feed by the user.\n", "\n", " " ] }, { "cell_type": "markdown", "id": "7dbb945b", "metadata": { "slideshow": { "slide_type": "subslide" } }, "source": [ "\n", "\n", "
\n", "\t